package com.dht.xiao.jianye.adapter;

import android.os.Build;
import android.support.annotation.RequiresApi;

import com.dht.xiao.jianye.R;
import com.dht.xiao.jianye.bean.MyCaseBean;
import com.dht.xiao.jianye.bean.QueryCaseBean;

import cn.dlc.commonlibrary.ui.adapter.BaseRecyclerAdapter;

public class WorkQueryAdapter extends BaseRecyclerAdapter<QueryCaseBean.DataBean> {


    @Override
    public int getItemLayoutId(int viewType) {
        return R.layout.item_work_get;
    }

    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    @Override
    public void onBindViewHolder(CommonHolder holder, int position) {

        QueryCaseBean.DataBean bean = getItem(position);

        holder.getText(R.id.hospital).setText(bean.hotel);
        holder.getText(R.id.office).setText(bean.office);
        holder.getText(R.id.personnel).setText(bean.name);
        holder.getText(R.id.nums).setText(bean.amount);
        holder.getText(R.id.name).setText(bean.title);
        holder.getText(R.id.number).setText(bean.caseNo);
    }

}
